package com.yichen.ycapiclientSDK.utils;

/**
 * @Author: yichenwu
 * @Date:2024/7/29 20:06
 */

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * 生成加密签名
 */
public class SignUtils {
    public static String getSign(String requestBody, String secretKey) {
        Digester md5 = new Digester(DigestAlgorithm.MD5);
        String sign = md5.digestHex(requestBody + "." + secretKey);
        return sign;
    }
}
